<?php

/**
 * Profile form.
 *
 * @package    form
 * @subpackage Profile
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class ProfileForm extends BaseProfileForm
{
  public function setup()
  {
    parent::setup();

    $this->setValidator('user_id',
      new sfValidatorDoctrineChoice(array('model' => 'sfGuardUser', 'column' => 'id', 'required' => true)));

    unset(
      $this['url_name'],
      $this['created_at'],
      $this['updated_at']
    );
  }
}